package com.xindaoapp.happypet.ui;

import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;

import com.xindaoapp.happypet.R;

/**
 * 最新的消息中心 2014-11-5
 * 
 * @author Stone
 * 
 */
public class MessageCenterActivity extends FragmentActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        setContentView(R.layout.activity_message_center);


        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        Fragment fragment = MyMessageFragment.newInstance();
        transaction.replace(R.id.lay_for_message, fragment).commit();
    }



}
